#! /usr/bin/env python
# -*- coding:utf-8 -*-
# Author Jmz


class foo:
    def __init__(self,x,y):
        self.__x = x
        self.__y = y


obj = foo('x','y')
obj.__z = 'z'

print(obj.__dict__)
'''
输出结果
{'_foo__x': 'x', '_foo__y': 'y', '__z': 'z'}
'''
